in[0] = 0;
in[1] = 0;
in[2] = 1;
in[3] = 1;
in[4] = 1;
in[5] = 1;
in[6] = 0;
in[7] = 0;
in[8] = 0;
in[9] = 0;
in[10] = 1;
in[11] = 1;
in[12] = 1;
in[13] = 1;
in[14] = 0;
in[15] = 0;
in[16] = 1;
in[17] = 1;
in[18] = 0;
in[19] = 0;
in[20] = 0;
in[21] = 0;
in[22] = 1;
in[23] = 1;
in[24] = 1;
in[25] = 1;
in[26] = 0;
in[27] = 0;
in[28] = 0;
in[29] = 0;
in[30] = 1;
in[31] = 1;
in[32] = 0;
in[33] = 1;
in[34] = 1;
in[35] = 0;
in[36] = 1;
in[37] = 0;
in[38] = 0;
in[39] = 1;
in[40] = 0;
in[41] = 1;
in[42] = 1;
in[43] = 0;
in[44] = 1;
in[45] = 0;
in[46] = 0;
in[47] = 1;
in[48] = 0;
in[49] = 1;
in[50] = 1;
in[51] = 0;
in[52] = 1;
in[53] = 0;
in[54] = 0;
in[55] = 1;
in[56] = 0;
in[57] = 1;
in[58] = 1;
in[59] = 0;
in[60] = 1;
in[61] = 0;
in[62] = 0;
in[63] = 1;
in[64] = 1;
in[65] = 1;
in[66] = 0;
in[67] = 0;
in[68] = 0;
in[69] = 0;
in[70] = 0;
in[71] = 0;
in[72] = 1;
in[73] = 1;
in[74] = 1;
in[75] = 1;
in[76] = 0;
in[77] = 1;
in[78] = 1;
in[79] = 0;
in[80] = 1;
in[81] = 1;
in[82] = 0;
in[83] = 0;
in[84] = 0;
in[85] = 0;
in[86] = 1;
in[87] = 0;
in[88] = 1;
in[89] = 1;
in[90] = 1;
in[91] = 1;
in[92] = 1;
in[93] = 0;
in[94] = 0;
in[95] = 0;
in[96] = 0;
in[97] = 1;
in[98] = 1;
in[99] = 1;
in[100] = 1;
in[101] = 1;
in[102] = 1;
in[103] = 0;
in[104] = 1;
in[105] = 1;
in[106] = 0;
in[107] = 1;
in[108] = 1;
in[109] = 0;
in[110] = 1;
in[111] = 1;
in[112] = 0;
in[113] = 0;
in[114] = 1;
in[115] = 0;
in[116] = 0;
in[117] = 1;
in[118] = 0;
in[119] = 1;
in[120] = 0;
in[121] = 0;
in[122] = 1;
in[123] = 1;
in[124] = 0;
in[125] = 0;
in[126] = 1;
in[127] = 1;
in[128] = 1;
in[129] = 0;
in[130] = 1;
in[131] = 1;
in[132] = 1;
in[133] = 1;
in[134] = 1;
in[135] = 0;
in[136] = 1;
in[137] = 1;
in[138] = 1;
in[139] = 0;
in[140] = 1;
in[141] = 1;
in[142] = 1;
in[143] = 1;
in[144] = 0;
in[145] = 1;
in[146] = 0;
in[147] = 0;
in[148] = 1;
in[149] = 1;
in[150] = 0;
in[151] = 0;
in[152] = 1;
in[153] = 0;
in[154] = 0;
in[155] = 0;
in[156] = 0;
in[157] = 1;
in[158] = 1;
in[159] = 0;
in[160] = 1;
in[161] = 0;
in[162] = 1;
in[163] = 0;
in[164] = 0;
in[165] = 1;
in[166] = 1;
in[167] = 0;
in[168] = 1;
in[169] = 0;
in[170] = 0;
in[171] = 0;
in[172] = 1;
in[173] = 1;
in[174] = 0;
in[175] = 0;
in[176] = 0;
in[177] = 1;
in[178] = 0;
in[179] = 1;
in[180] = 0;
in[181] = 1;
in[182] = 1;
in[183] = 1;
in[184] = 1;
in[185] = 0;
in[186] = 0;
in[187] = 0;
in[188] = 0;
in[189] = 1;
in[190] = 1;
in[191] = 0;
in[192] = 0;
in[193] = 0;
in[194] = 1;
in[195] = 0;
in[196] = 1;
in[197] = 1;
in[198] = 0;
in[199] = 0;
in[200] = 0;
in[201] = 0;
in[202] = 1;
in[203] = 1;
in[204] = 0;
in[205] = 1;
in[206] = 0;
in[207] = 1;
in[208] = 0;
in[209] = 0;
in[210] = 0;
in[211] = 1;
in[212] = 1;
in[213] = 1;
in[214] = 1;
in[215] = 1;
in[216] = 1;
in[217] = 1;
in[218] = 1;
in[219] = 1;
in[220] = 0;
in[221] = 0;
in[222] = 0;
in[223] = 1;
in[224] = 1;
in[225] = 1;
in[226] = 1;
in[227] = 1;
in[228] = 1;
in[229] = 1;
in[230] = 0;
in[231] = 0;
in[232] = 0;
in[233] = 0;
in[234] = 0;
in[235] = 1;
in[236] = 1;
in[237] = 1;
in[238] = 0;
in[239] = 0;
in[240] = 0;
in[241] = 0;
in[242] = 0;
in[243] = 0;
in[244] = 1;
in[245] = 1;
in[246] = 0;
in[247] = 0;
in[248] = 1;
in[249] = 1;
in[250] = 1;
in[251] = 0;
in[252] = 0;
in[253] = 0;
in[254] = 0;
in[255] = 1;
in[256] = 1;
in[257] = 1;
in[258] = 1;
in[259] = 0;
in[260] = 1;
in[261] = 0;
in[262] = 1;
in[263] = 0;
in[264] = 0;
in[265] = 0;
in[266] = 0;
in[267] = 1;
in[268] = 0;
in[269] = 0;
in[270] = 0;
in[271] = 1;
in[272] = 1;
in[273] = 0;
in[274] = 1;
in[275] = 1;
in[276] = 1;
in[277] = 0;
in[278] = 0;
in[279] = 1;
in[280] = 1;
in[281] = 1;
in[282] = 0;
in[283] = 0;
in[284] = 1;
in[285] = 0;
in[286] = 0;
in[287] = 1;
in[288] = 1;
in[289] = 1;
in[290] = 1;
in[291] = 1;
in[292] = 1;
in[293] = 1;
in[294] = 0;
in[295] = 0;
in[296] = 1;
in[297] = 1;
in[298] = 0;
in[299] = 0;
in[300] = 0;
in[301] = 1;
in[302] = 0;
in[303] = 1;
in[304] = 1;
in[305] = 0;
in[306] = 1;
in[307] = 0;
in[308] = 0;
in[309] = 1;
in[310] = 0;
in[311] = 0;
in[312] = 0;
in[313] = 1;
in[314] = 1;
in[315] = 1;
in[316] = 0;
in[317] = 0;
in[318] = 0;
in[319] = 1;
in[320] = 0;
in[321] = 0;
in[322] = 0;
in[323] = 0;
in[324] = 0;
in[325] = 0;
in[326] = 1;
in[327] = 0;
in[328] = 0;
in[329] = 0;
in[330] = 0;
in[331] = 0;
in[332] = 0;
in[333] = 0;
in[334] = 0;
in[335] = 0;
in[336] = 1;
in[337] = 0;
in[338] = 1;
in[339] = 1;
in[340] = 1;
in[341] = 1;
in[342] = 1;
in[343] = 1;
in[344] = 0;
in[345] = 1;
in[346] = 0;
in[347] = 1;
in[348] = 1;
in[349] = 0;
in[350] = 0;
in[351] = 1;
in[352] = 0;
in[353] = 0;
in[354] = 0;
in[355] = 1;
in[356] = 0;
in[357] = 0;
in[358] = 1;
in[359] = 0;
in[360] = 0;
in[361] = 1;
in[362] = 1;
in[363] = 1;
in[364] = 1;
in[365] = 1;
in[366] = 0;
in[367] = 1;
in[368] = 0;
in[369] = 0;
in[370] = 1;
in[371] = 1;
in[372] = 1;
in[373] = 1;
in[374] = 1;
in[375] = 1;
in[376] = 0;
in[377] = 1;
in[378] = 1;
in[379] = 0;
in[380] = 1;
in[381] = 1;
in[382] = 0;
in[383] = 0;
in[384] = 0;
in[385] = 1;
in[386] = 1;
in[387] = 1;
in[388] = 0;
in[389] = 0;
in[390] = 0;
in[391] = 0;
in[392] = 0;
in[393] = 1;
in[394] = 1;
in[395] = 0;
in[396] = 0;
in[397] = 1;
in[398] = 0;
in[399] = 0;
in[400] = 1;
in[401] = 1;
in[402] = 0;
in[403] = 1;
in[404] = 1;
in[405] = 1;
in[406] = 1;
in[407] = 0;
in[408] = 0;
in[409] = 0;
in[410] = 0;
in[411] = 0;
in[412] = 0;
in[413] = 0;
in[414] = 1;
in[415] = 0;
in[416] = 0;
in[417] = 0;
in[418] = 1;
in[419] = 1;
in[420] = 0;
in[421] = 0;
in[422] = 1;
in[423] = 0;
in[424] = 1;
in[425] = 0;
in[426] = 0;
in[427] = 1;
in[428] = 0;
in[429] = 1;
in[430] = 0;
in[431] = 1;
in[432] = 1;
in[433] = 0;
in[434] = 1;
in[435] = 0;
in[436] = 0;
in[437] = 1;
in[438] = 1;
in[439] = 1;
in[440] = 0;
in[441] = 0;
in[442] = 1;
in[443] = 0;
in[444] = 0;
in[445] = 1;
in[446] = 1;
in[447] = 0;
in[448] = 0;
in[449] = 0;
in[450] = 0;
in[451] = 1;
in[452] = 1;
in[453] = 1;
in[454] = 0;
in[455] = 0;
in[456] = 1;
in[457] = 1;
in[458] = 0;
in[459] = 0;
in[460] = 0;
in[461] = 0;
in[462] = 1;
in[463] = 1;
in[464] = 1;
in[465] = 1;
in[466] = 1;
in[467] = 0;
in[468] = 0;
in[469] = 0;
in[470] = 1;
in[471] = 0;
in[472] = 1;
in[473] = 1;
in[474] = 0;
in[475] = 1;
in[476] = 0;
in[477] = 0;
in[478] = 1;
in[479] = 0;
in[480] = 1;
in[481] = 0;
in[482] = 0;
in[483] = 1;
in[484] = 0;
in[485] = 0;
in[486] = 1;
in[487] = 1;
in[488] = 1;
in[489] = 1;
in[490] = 1;
in[491] = 0;
in[492] = 1;
in[493] = 0;
in[494] = 1;
in[495] = 0;
in[496] = 0;
in[497] = 0;
in[498] = 1;
in[499] = 1;
in[500] = 0;
in[501] = 1;
in[502] = 1;
in[503] = 1;
in[504] = 0;
in[505] = 0;
in[506] = 1;
in[507] = 1;
in[508] = 0;
in[509] = 0;
in[510] = 1;
in[511] = 0;
in[512] = 1;
in[513] = 0;
in[514] = 1;
in[515] = 1;
in[516] = 1;
in[517] = 1;
in[518] = 0;
in[519] = 0;
in[520] = 1;
in[521] = 0;
in[522] = 0;
in[523] = 1;
in[524] = 0;
in[525] = 1;
in[526] = 1;
in[527] = 1;
in[528] = 0;
in[529] = 1;
in[530] = 1;
in[531] = 1;
in[532] = 0;
in[533] = 1;
in[534] = 0;
in[535] = 1;
in[536] = 1;
in[537] = 0;
in[538] = 1;
in[539] = 0;
in[540] = 0;
in[541] = 1;
in[542] = 0;
in[543] = 1;
in[544] = 0;
in[545] = 1;
in[546] = 0;
in[547] = 0;
in[548] = 0;
in[549] = 1;
in[550] = 0;
in[551] = 1;
in[552] = 1;
in[553] = 1;
in[554] = 1;
in[555] = 1;
in[556] = 1;
in[557] = 1;
in[558] = 0;
in[559] = 0;
in[560] = 0;
in[561] = 1;
in[562] = 0;
in[563] = 0;
in[564] = 0;
in[565] = 0;
in[566] = 0;
in[567] = 0;
in[568] = 0;
in[569] = 1;
in[570] = 1;
in[571] = 1;
in[572] = 0;
in[573] = 1;
in[574] = 0;
in[575] = 1;
in[576] = 0;
in[577] = 0;
in[578] = 1;
in[579] = 0;
in[580] = 0;
in[581] = 1;
in[582] = 1;
in[583] = 0;
in[584] = 0;
in[585] = 1;
in[586] = 1;
in[587] = 1;
in[588] = 1;
in[589] = 0;
in[590] = 0;
in[591] = 1;
in[592] = 1;
in[593] = 0;
in[594] = 0;
in[595] = 1;
in[596] = 1;
in[597] = 0;
in[598] = 0;
in[599] = 0;
in[600] = 0;
in[601] = 0;
in[602] = 1;
in[603] = 0;
in[604] = 1;
in[605] = 0;
in[606] = 1;
in[607] = 0;
in[608] = 0;
in[609] = 1;
in[610] = 1;
in[611] = 1;
in[612] = 1;
in[613] = 1;
in[614] = 0;
in[615] = 0;
in[616] = 1;
in[617] = 0;
in[618] = 1;
in[619] = 1;
in[620] = 1;
in[621] = 0;
in[622] = 1;
in[623] = 1;
in[624] = 0;
in[625] = 0;
in[626] = 1;
in[627] = 0;
in[628] = 0;
in[629] = 1;
in[630] = 0;
in[631] = 1;
in[632] = 1;
in[633] = 0;
in[634] = 0;
in[635] = 1;
in[636] = 1;
in[637] = 1;
in[638] = 0;
in[639] = 1;
in[640] = 0;
in[641] = 1;
in[642] = 1;
in[643] = 0;
in[644] = 0;
in[645] = 1;
in[646] = 0;
in[647] = 1;
in[648] = 0;
in[649] = 1;
in[650] = 1;
in[651] = 0;
in[652] = 0;
in[653] = 1;
in[654] = 0;
in[655] = 0;
in[656] = 0;
in[657] = 0;
in[658] = 1;
in[659] = 1;
in[660] = 1;
in[661] = 1;
in[662] = 1;
in[663] = 0;
in[664] = 0;
in[665] = 1;
in[666] = 0;
in[667] = 1;
in[668] = 1;
in[669] = 1;
in[670] = 0;
in[671] = 1;
in[672] = 1;
in[673] = 0;
in[674] = 1;
in[675] = 0;
in[676] = 0;
in[677] = 0;
in[678] = 1;
in[679] = 1;
in[680] = 1;
in[681] = 1;
in[682] = 1;
in[683] = 0;
in[684] = 1;
in[685] = 1;
in[686] = 0;
in[687] = 0;
in[688] = 0;
in[689] = 1;
in[690] = 0;
in[691] = 0;
in[692] = 1;
in[693] = 0;
in[694] = 1;
in[695] = 0;
in[696] = 0;
in[697] = 1;
in[698] = 1;
in[699] = 1;
in[700] = 1;
in[701] = 0;
in[702] = 1;
in[703] = 1;
in[704] = 1;
in[705] = 1;
in[706] = 1;
in[707] = 1;
in[708] = 0;
in[709] = 1;
in[710] = 1;
in[711] = 0;
in[712] = 1;
in[713] = 0;
in[714] = 1;
in[715] = 1;
in[716] = 1;
in[717] = 0;
in[718] = 1;

gold[0] = 0;
gold[1] = 1;
gold[2] = 1;
gold[3] = 1;
gold[4] = 0;
gold[5] = 1;
gold[6] = 0;
gold[7] = 0;
gold[8] = 1;
gold[9] = 0;
gold[10] = 1;
gold[11] = 1;
gold[12] = 1;
gold[13] = 0;
gold[14] = 0;
gold[15] = 1;
gold[16] = 0;
gold[17] = 0;
gold[18] = 0;
gold[19] = 0;
gold[20] = 0;
gold[21] = 0;
gold[22] = 1;
gold[23] = 0;
gold[24] = 0;
gold[25] = 1;
gold[26] = 0;
gold[27] = 1;
gold[28] = 0;
gold[29] = 1;
gold[30] = 1;
gold[31] = 1;
gold[32] = 1;
gold[33] = 0;
gold[34] = 0;
gold[35] = 0;
gold[36] = 1;
gold[37] = 0;
gold[38] = 0;
gold[39] = 1;
gold[40] = 1;
gold[41] = 1;
gold[42] = 1;
gold[43] = 1;
gold[44] = 0;
gold[45] = 1;
gold[46] = 0;
gold[47] = 0;
gold[48] = 0;
gold[49] = 1;
gold[50] = 1;
gold[51] = 1;
gold[52] = 1;
gold[53] = 0;
gold[54] = 1;
gold[55] = 0;
gold[56] = 1;
gold[57] = 0;
gold[58] = 0;
gold[59] = 1;
gold[60] = 1;
gold[61] = 0;
gold[62] = 0;
gold[63] = 1;
gold[64] = 0;
gold[65] = 0;
gold[66] = 1;
gold[67] = 1;
gold[68] = 1;
gold[69] = 0;
gold[70] = 1;
gold[71] = 1;
gold[72] = 0;
gold[73] = 1;
gold[74] = 0;
gold[75] = 1;
gold[76] = 1;
gold[77] = 1;
gold[78] = 0;
gold[79] = 1;
gold[80] = 0;
gold[81] = 0;
gold[82] = 1;
gold[83] = 1;
gold[84] = 1;
gold[85] = 0;
gold[86] = 1;
gold[87] = 0;
gold[88] = 0;
gold[89] = 1;
gold[90] = 1;
gold[91] = 0;
gold[92] = 1;
gold[93] = 0;
gold[94] = 1;
gold[95] = 0;
gold[96] = 0;
gold[97] = 0;
gold[98] = 1;
gold[99] = 1;
gold[100] = 1;
gold[101] = 1;
gold[102] = 1;
gold[103] = 1;
gold[104] = 1;
gold[105] = 0;
gold[106] = 0;
gold[107] = 1;
gold[108] = 1;
gold[109] = 0;
gold[110] = 0;
gold[111] = 1;
gold[112] = 0;
gold[113] = 0;
gold[114] = 1;
gold[115] = 0;
gold[116] = 1;
gold[117] = 1;
gold[118] = 1;
gold[119] = 1;
gold[120] = 1;
gold[121] = 0;
gold[122] = 0;
gold[123] = 0;
gold[124] = 0;
gold[125] = 1;
gold[126] = 1;
gold[127] = 0;
gold[128] = 0;
gold[129] = 1;
gold[130] = 1;
gold[131] = 1;
gold[132] = 0;
gold[133] = 1;
gold[134] = 1;
gold[135] = 0;
gold[136] = 0;
gold[137] = 0;
gold[138] = 0;
gold[139] = 0;
gold[140] = 1;
gold[141] = 0;
gold[142] = 1;
gold[143] = 0;
gold[144] = 0;
gold[145] = 1;
gold[146] = 0;
gold[147] = 0;
gold[148] = 0;
gold[149] = 1;
gold[150] = 0;
gold[151] = 1;
gold[152] = 1;
gold[153] = 0;
gold[154] = 0;
gold[155] = 0;
gold[156] = 1;
gold[157] = 1;
gold[158] = 1;
gold[159] = 1;
gold[160] = 0;
gold[161] = 0;
gold[162] = 1;
gold[163] = 0;
gold[164] = 1;
gold[165] = 0;
gold[166] = 0;
gold[167] = 1;
gold[168] = 0;
gold[169] = 1;
gold[170] = 0;
gold[171] = 1;
gold[172] = 1;
gold[173] = 1;
gold[174] = 1;
gold[175] = 0;
gold[176] = 0;
gold[177] = 1;
gold[178] = 0;
gold[179] = 1;
gold[180] = 1;
gold[181] = 0;
gold[182] = 1;
gold[183] = 1;
gold[184] = 0;
gold[185] = 1;
gold[186] = 0;
gold[187] = 1;
gold[188] = 1;
gold[189] = 0;
gold[190] = 1;
gold[191] = 0;
gold[192] = 1;
gold[193] = 1;
gold[194] = 1;
gold[195] = 0;
gold[196] = 0;
gold[197] = 1;
gold[198] = 0;
gold[199] = 0;
gold[200] = 1;
gold[201] = 0;
gold[202] = 1;
gold[203] = 1;
gold[204] = 0;
gold[205] = 1;
gold[206] = 1;
gold[207] = 1;
gold[208] = 1;
gold[209] = 0;
gold[210] = 0;
gold[211] = 0;
gold[212] = 1;
gold[213] = 1;
gold[214] = 0;
gold[215] = 1;
gold[216] = 1;
gold[217] = 1;
gold[218] = 0;
gold[219] = 0;
gold[220] = 1;
gold[221] = 1;
gold[222] = 0;
gold[223] = 1;
gold[224] = 0;
gold[225] = 0;
gold[226] = 1;
gold[227] = 0;
gold[228] = 0;
gold[229] = 1;
gold[230] = 0;
gold[231] = 0;
gold[232] = 0;
gold[233] = 0;
gold[234] = 1;
gold[235] = 1;
gold[236] = 1;
gold[237] = 1;
gold[238] = 0;
gold[239] = 1;
gold[240] = 0;
gold[241] = 1;
gold[242] = 0;
gold[243] = 0;
gold[244] = 0;
gold[245] = 1;
gold[246] = 1;
gold[247] = 1;
gold[248] = 0;
gold[249] = 0;
gold[250] = 1;
gold[251] = 1;
gold[252] = 1;
gold[253] = 1;
gold[254] = 0;
gold[255] = 0;
gold[256] = 1;
gold[257] = 1;
gold[258] = 0;
gold[259] = 1;
gold[260] = 0;
gold[261] = 0;
gold[262] = 0;
gold[263] = 1;
gold[264] = 1;
gold[265] = 1;
gold[266] = 1;
gold[267] = 1;
gold[268] = 1;
gold[269] = 1;
gold[270] = 1;
gold[271] = 0;
gold[272] = 0;
gold[273] = 1;
gold[274] = 1;
gold[275] = 0;
gold[276] = 1;
gold[277] = 0;
gold[278] = 0;
gold[279] = 1;
gold[280] = 0;
gold[281] = 1;
gold[282] = 0;
gold[283] = 0;
gold[284] = 1;
gold[285] = 0;
gold[286] = 0;
gold[287] = 1;
